package com.example.myzhugezhaofang.callback;

import com.example.mvplibrary.callback.BaseModelCallback;
import com.example.mvplibrary.view.RxBaseView;
import com.trello.rxlifecycle2.LifecycleProvider;

import java.util.HashMap;

/**
 * @Name：ZhuGeApp
 * @Description：描述信息
 * @Author：86188 范嘉豪
 * @Date：2021/4/9 15:57
 * 契约类
 */
public interface Mainconcations {
    interface MainView<T> extends RxBaseView {
        void showList(T t, int type);

        void showError(String error);
    }

    interface MainPresenter {
        void getData();
    }

    interface MainModel<T> {
        void getData(BaseModelCallback<T> baseModelCallback, LifecycleProvider lifecycleProvider, HashMap<String, Object> map, String baseUrl, String apiUrl, int type);
    }
}
